package com.xfcy.blog.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 博客分类表(Category)表实体类
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:05
 */
@TableName("b_category")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category implements Serializable {
    //主键id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //分类名称
    private String name;
    
    private Integer clickVolume;
    //排序
    private Integer sort;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //最后更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    public Category(Long id, Integer clickVolume) {
        this.id = id;
        this.clickVolume = clickVolume;
    }

}

